<?php

if (!defined('BASEPATH'))
    exit('No direct script access allowed');

class Main extends CI_Controller {
    
    public function __construct() {
        parent::__construct();
        $this->load->helper('url');
        $this->load->model('articles');
    }

    public function index() {
        $data['title'] = 'home';
        $data['content'] = $this->load->view('page/home','',TRUE);
        $this->load->view('front',$data);
    }
    
    public function home() {
        $this->index();
    }
    
    public function about() {
        redirect('about');
    }
    
    public function community() {
        redirect('community');
    }
    
    public function portfolio() {
        redirect('portfolio');
    }
    
    public function blog() {
        redirect('blog');
    }

}